<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="keywords" content=""/>
    <meta http-equiv="description" content=""/>
    <link rel="stylesheet" href="Css/Style.css" type="text/css" />
    <link rel="stylesheet" href="Css/Admin.css" type="text/css" />
    <script type="text/javascript" src="Js/jquery-1.7.2.js"></script>
    <title>${user.nickname}---首页</title>
    <style type="text/css">

    </style>

</head>
<body>
<div id="head">
    <div>
        <img src="images/head.jpg;" style="width:770px;height:180px">
        <span>
			<h1><a href="index">iWen</a></h1>
			<p>问卷调查系统</p>
		</span>
    </div>
</div>
<%@ include file="banner.jsp"%>
<div id="main" class="middle">
    <div id="main_1">
        <div class="title">最新问卷</div>
        <div class="head_new_flash">




        </div>
        <div class="head_new_list">
            <ol>
                <c:forEach items="${survey}" var="s">
                    <li class=li><a href="SurveyShow?sid=${s.id}" target="_blank">${s.name}</a>&nbsp;&nbsp;&nbsp;&nbsp;<i><font color=grey>${s.createdate}</font></i></li>
                </c:forEach>
            </ol>
        </div>
    </div>
    <div id="main_2">
        <div class="title">热门排行榜</div>
        <div class="paihang_content">

            <ol>
                <c:forEach items="${hotsurvey}" var="s">
                    <li ><a href="SurveyShow?sid=${s.id}" target="_blank">${s.name}</a></li>

                </c:forEach>
            </ol>
        </div>
    </div><!--main_2 end-->
</div><!--main end-->

<%--<%
LinkDAO ldao=DAOFactory.getLinkDAO();
List<Link> llist=ldao.listAllLink();
%>--%>
<div id="indexFriend" class="middle">
    <div class="title">友情链接</div>
    <div class="main" >

        <ul>
            <c:forEach items="${link}" var="s">
                <li class=friendBox><a href=${s.url} target="_blank">${s.name} </a></li>
            </c:forEach>
                <%--<li class=friendBox><a href=${s.url} target="_blank"><img height="5px" src="images/link/baidu.jpg" alt=""/></a></li>--%>
        </ul>
        <%-- <ul >

        <%--<%
        int j=0;
        for(Link link:llist){
            if(j>6)
                break;
            j++;
        %>--%>

        <%--<%} %>--%>

    </div>
</div>


<%--<div id="bottom">
	<%=cfg.getCSiteName() %><br/>
	<%=cfg.getCopyright() %>
</div><!--bottom end-->--%>
</body>
</html>